home *** CD-ROM | disk | FTP | other *** search
- Path: news.cs.utah.edu!usenet
- From: bendixen@eng.utah.edu (mason bendixen)
- Newsgroups: comp.lang.c++
- Subject: Any luck with STL with g++ 2.7.0 and SunOS 4.1.3
- Date: 19 Feb 1996 16:10:59 GMT
- Organization: University of Utah
- Message-ID: <4ga7ej$i3b@magus.cs.utah.edu>
- Reply-To: bendixen@eng.utah.edu
- NNTP-Posting-Host: cadesm63.eng.utah.edu
-
- Hi
- I have been very excited about STL since I first heard
- about it and am in the middle of reading "STL Tutorial and
- Reference Guide: C++ Programming with the Standard Template
- Library" by Musser & Saini. I now feel somewhat comfortable
- with the idea of using STL so I downloaded the HP reference
- library and tried compiling a little Hello STL test program.
- I am using a SPARCstation 10 running SunOS 4.1.3 and
- g++ 2.7.0 (we will be moving to 2.7.2 sometime soon but not
- for atleast a month). The program did not compile because
- of the
- #include < all stl files >
- lines. I tried recompiling with
- g++ -idirafter . rest of stuff
- and this worked for the stl files, but g++ couldn't locate
- new.h. This surprised me since I thought new.h had been part
- of the standard for a while. The file that used new.h was
- defalloc.h. The read.me file for STL says that the allocator
- files (defalloc.h, faralloc.h, hugalloc.h, lngalloc.h, and
- lngalloc.h) are samples, and that they should be replaced with
- compiler/platform specific versions. Does anyone know where
- I might find these? Also, does anyone know of any other obstacles
- I might encounter in trying to get STL running with g++?
-
- Please respond by E-Mail
- Thanks
- Mason Bendixen
-
-
-
-
-